package wh.coach.web.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

import wh.coach.web.interceptor.LoginContextInterceptor;

/**
 * @author hangwen
 * @date 2023/8/15
 */
@Configuration
public class WebMvcConfig extends WebMvcConfigurationSupport {

    @Override
    protected void addInterceptors(final InterceptorRegistry registry) {
        registry.addInterceptor(new LoginContextInterceptor());
    }

}
